package cn.devzyh.oms.common.core.message;

/**
 * 仓库库存模块错误编码
 *
 * @author devzyh
 * @date 2023-10-24
 */
public interface WsmsErrorCodes {

	/**
	 * 仓库信息不存在
	 */
	String WAREHOUSE_NOT_EXISTS = "wsms.warehouse.not.exists";

	/**
	 * 渠道信息不存在
	 */
	String CHANNEL_NOT_EXISTS = "wsms.channel.not.exists";

	/**
	 * 库存位置不存在
	 */
	String LOCATION_NOT_EXISTS = "wsms.location.not.exists";

	/**
	 * 商品信息不存在
	 */
	String SKU_NOT_EXISTS = "wsms.sku.not.exists";

	/**
	 * 仓库{0}库存{1}记录不存在
	 */
	String STOCK_NOT_EXISTS = "wsms.stock.not.exists";

	/**
	 * 操作数量不能为空或零
	 */
	String QUANTITY_ILLEGAL = "wsms.quantity.illegal";

	/**
	 * 库存{0}可用数量{1}不足
	 */
	String QUANTITY_NOT_ENOUGH = "wsms.quantity.not.enough";

	/**
	 * 库存{0}更新失败
	 */
	String STOCK_UPDATE_FAILED = "wsms.stock.update.failed";

	/**
	 * 业务主键数据为空
	 */
	String DATA_KEY_EMPTY = "wsms.data.key.empty";

	/**
	 * 仓库{0}匹配失败
	 */
	String MATCH_WAREHOUSE_FAILED = "wsms.match.warehouse.failed";

}
